header {
    width: 100%;
    height: 65px;
    border-bottom: 1px solid #aec7ec;
    top: 0;
    left: 0;
    z-index: 666;
}

header .logo {
    width: 230px;
    height: 30px;
}


/* nav */

header .nav {
    line-height: 65px;
    top: 0;
    left: 50%;
    /* CSS3平移效果 */
    transform: translateX(-50%);
}

header .nav li {
    float: left;
    margin: 0 20px;
}

header .nav li a {
    color: #ffffff;
}


/* 选中效果 */

header .nav li.active a {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 20px;
    font-size: 16px;
}


/* 登录和注册 */

header .right-box a {
    padding: 4px 16px;
    border: 1px solid #aac6ef;
    color: #fff;
    border-radius: 14px;
    float: left;
}

header .right-box .register {
    background-color: #ed510a;
    border: 1px solid #ed510a;
    margin-left: 10px;
}